package trafficgeneratorcr;

import java.io.FileNotFoundException;
import java.util.Random;
import trafficgeneratorcr.algo.GeneratorAlgorithm;
import trafficgeneratorcr.gui.MainFrame;
import trafficgeneratorcr.writer.CSVWriter;

public class Main {
   
    public static void main(String[] args) {
        MainFrame mainFrame = new MainFrame();
        mainFrame.setVisible(true);

        /*int[][][] distributionPointsEveryHour = new int[2][7][25];

        for (int type = 0; type < distributionPointsEveryHour.length; type++) {
            for (int dayOfWeek = 0; dayOfWeek < 7; dayOfWeek++) {
                for (int hourOfDay = 0; hourOfDay < 25; hourOfDay++) {
                    distributionPointsEveryHour[type][dayOfWeek][hourOfDay] = new Random().nextInt(100);
                }
            }
        }
        
        GeneratorAlgorithm generatorAlgorithm = new GeneratorAlgorithm(3, 30, 10000, distributionPointsEveryHour);
        generatorAlgorithm.execute();

        CSVWriter csvWriter = new CSVWriter(generatorAlgorithm.getOutputTables(), "/C:/Documents and Settings/stolo/Desktop/test.csv");
        try {
            csvWriter.writeOutput();
        }
        catch (FileNotFoundException ex) {
            ex.printStackTrace();
        }*/
    }

}
